package com.example.latte_core.net;

import com.example.latte_core.net.callback.IError;
import com.example.latte_core.net.callback.IFailure;
import com.example.latte_core.net.callback.IRequest;
import com.example.latte_core.net.callback.ISuccess;

import java.util.Map;

import okhttp3.RequestBody;

public class RestClient {

    private final String URL;
    private final Map<String,Object> PARAMS;
   private  final IRequest REQUEST;
   private final ISuccess SCUESS;
   private final IFailure IFAILURE;
   private final IError IERROR;
   private final RequestBody BODY;

    public RestClient(String URL, Map<String, Object> PARAMS, IRequest REQUEST, ISuccess SCUESS, IFailure IFAILURE, IError IERROR, RequestBody BODY) {
        this.URL = URL;
        this.PARAMS = PARAMS;
        this.REQUEST = REQUEST;
        this.SCUESS = SCUESS;
        this.IFAILURE = IFAILURE;
        this.IERROR = IERROR;
        this.BODY = BODY;
    }
    public static  RestClientBuilder builder(){
        return new RestClientBuilder();
    }
}
